import request from '@/untils/request.js'

const api = {}
api.addUser = params => request.globalRequest('/api/user/addUser', 'POST', params, 0)
api.login = params => request.globalRequest('/api/user/login', 'POST', params, 1)
api.addInstall = params => request.globalRequest('/api/install/addInstall', 'POST', params, 1)
api.queryInstallList = params => request.globalRequest('/api/install/queryInstallList', 'POST', params, 1)
api.deleteInstall = params => request.globalRequest('/api/install/deleteInstall', 'POST', params, 1)
api.queryInstallItem = params => request.globalRequest('/api/install/queryInstallItem', 'POST', params, 1)
api.updateInstall = params => request.globalRequest('/api/install/updateInstall', 'POST', params, 1)
api.checkLogin = params => request.globalRequest('/api/user/checkLogin', 'POST', params, 1)

export default api